import java.util.Scanner;


public class Opgave_7 {
	public static void main(String[] args){
		String password;
		int passwordLength;
		Scanner input = new Scanner(System.in);
		System.out.print("Enter a password: ");
		password = input.next();
		input.close();
		passwordLength = password.length();
		
		if(passwordLength > 4 && passwordLength < 9){
			System.out.println("The password is " + passwordLength + "Characters, Valide");
		}else if(passwordLength <= 5){
			System.out.println("The password is " + passwordLength + " Characters, less then 5, UNVAILDE!!");
		}else if(passwordLength >= 8){
			System.out.println("The password is " + passwordLength + " Characters, more then 8, UNVAILDE!!");
		}
	}	
}

